home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Headers / misckit / MiscMergeDriver.h < prev    next >
Encoding:
Text File  |  1995-07-08  |  1.5 KB  |  48 lines

  1. //
  2. //    MiscMergeDriver.h -- a simple loop for driving bulk merges
  3. //        Written by Don Yacktman Copyright (c) 1995 by Don Yacktman.
  4. //                Version 1.0.  All rights reserved.
  5. //        This notice may not be removed from this source code.
  6. //
  7. //    This object is included in the MiscKit by permission from the author
  8. //    and its use is governed by the MiscKit license, found in the file
  9. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  10. //    for a list of all applicable permissions and restrictions.
  11. //    
  12.  
  13. #import <appkit/appkit.h>
  14. #import <misckit/MiscMergeProtocols.h>
  15.  
  16. @class MiscMergeCommand;
  17. @class MiscMergeEngine;
  18. @class MiscMergeTemplate;
  19. @class HashTable;
  20.  
  21. @interface MiscMergeDriver : Object <MiscMergeDriver>
  22. {
  23.     MiscMergeTemplate *template; /*" MiscMergeTemplate for merging "*/
  24.     List *dictionaries; /*" List of MiscDictionaries used for merges "*/
  25.     List *output; /*" The output list that will be returned by -#{doMerge:} "*/
  26.     MiscMergeEngine *engine; /*" The merge engine to be used for merges "*/
  27.     BOOL merging; /*" YES if merging, NO if not "*/
  28.  
  29.     int _mergeLoopIndex; /*" Index to #{dictionaries} when merge is in progress "*/
  30. }
  31.  
  32. // The three basic steps to a successful merge:
  33. /*" Accessing the template "*/
  34. - (MiscMergeTemplate *)template;
  35. - setTemplate:(MiscMergeTemplate *)aTemplate;
  36.  
  37. /*" Accessing the data "*/
  38. - (List *)mergeData;
  39. - setMergeData:(List *)aList;
  40.  
  41. /*" Performing a merge "*/
  42. - (List *)doMerge:sender;
  43.  
  44. /*" Accessing the engine "*/
  45. - (MiscMergeEngine *)engine;
  46. - setEngine:(MiscMergeEngine *)anEngine;
  47.  
  48. @end